package com.jty.lib_base.room.bean

import androidx.room.ColumnInfo
import androidx.room.Entity
import androidx.room.PrimaryKey

@Entity(tableName = "grid_picture")
data class GridPicture(@PrimaryKey() var id: Long, //图片存储的名字用这个id, 如果有必要可以根据功能划分文件夹
                       @ColumnInfo(name = "pageserial") var pageserial: String = "",
                       @ColumnInfo(name = "pageNumber") var pageNumber: Int,
                       @ColumnInfo(name = "pictureName") var pictureName: String?,
                       @ColumnInfo(name = "pictureUrl") var pictureUrl: String,
                       @ColumnInfo(name = "width") var width: Int,
                       @ColumnInfo(name = "height") var height: Int,
                       @ColumnInfo(name = "scale") var scale: Float, //放大倍数，下载图片时，会缩小成适配手机宽度的大小
                       @ColumnInfo(name = "bookNoteId") var bookNoteId: Long?  //记录这一页纸属于哪一本书
)
